from django.conf.urls.defaults import *
from models import Country

urlpatterns = patterns('',
    url(r'ajax/region-codes/(?P<country>[\w\d]+)/$', 'countries.views.get_region_codes', name='region-codes'),
    url(r'ajax/country-codes/$', 'django.views.generic.list_detail.object_list', {'queryset':Country.objects.filter(active=True), }, 'region-countries'),
)